import request from '@/utils/request'
// get 第二个方法是配置项 不可以直接传参数

// 我的收藏
export const getArticleFavorate = () => request.get('/user/favorites')

// 我的出租
export const houses = () => request.get('/user/houses')

// 城市列表
export const cityList = () => request({ methods: 'get', url: '/area/city', params: { level: 1 } })

// 热门城市
export const cityListH = () => request.get('/area/hot')

// 发布房源
export const gorent = (data) => request({
  method: 'post',
  url: 'user/houses',
  body: data
})
